// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from './router'
const router = VueRouter()
//引入api
import api from "./api";

//挂载api
Vue.prototype.$api = api;

//  axios 相关的已经单独封装，所以此处的全部注释掉，拦截器也封装在单独的http.js中
// //引入 axios
// import Axios from 'axios'
//
// //配置axios
// Axios.defaults.baseURL = 'http://127.0.0.1:8888';
// // Axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
// // Axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
//
// //将axios挂载到原型上
// Vue.prototype.$axios = Axios;

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
